package com.six.goods.controller;

import com.six.core.entity.Checkgoods;
import com.six.core.entity.Goods;
import com.six.core.vo.Result;
import com.six.goods.service.CheckgoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2023/2/28  10:56
 */

@RestController
@RequestMapping("/goods/checkgoods")
public class CheckgoodsController {
    @Autowired
    private CheckgoodsService checkgoodsService;

    @GetMapping("/menu")
    @ResponseBody
    public Result menu(){
        return checkgoodsService.selecheckgoods();
    }

    //商品审核----修改审核状态（状态码  备注  审核人）
    @PostMapping("/checkgoodsremark")
    @ResponseBody
    public Result remark(@RequestBody Goods goods){
        return checkgoodsService.updateState(goods);
    }
}
